package com.sunny.design.factory.abstractfactory;

/**
 * @author Sunny
 * @date 2019/12/28 16:21
 */
public class AbstractFactoryModeTest {
    public static void main(String[] args) {
        ICourseFactory factory = new JavaCourseFactory();
        INote note = factory.createNote();
        IVideo video = factory.createVideo();

        note.show();
        video.show();

        factory = new PythonCourseFactory();
        note = factory.createNote();
        video = factory.createVideo();

        note.show();
        video.show();
    }
}
